import {Entity,  Column, PrimaryGeneratedColumn,ManyToOne} from "typeorm";
import {CountryEntity} from './CountryEntity';
@Entity("time")
export class TimeEntity{
    @PrimaryGeneratedColumn()
    time_Id!: number;

	@Column()
    countryId!: number;

    @Column()
    time_Timing!: string;

    @Column({length:500})
    time_Content!: string;

    @Column()
    time_Title!: string;

    @Column({length:500})
    time_Image!:string;

    @ManyToOne(() => CountryEntity, CountryEntity => CountryEntity.Times)
    Country!: CountryEntity

}